package com.epfresh.supplier.entity;

import java.util.List;

/**
 * Created by zhaozhenqiang on 2017/12/11.
 */

public class AgentMyRecord {

    /**
     * productAgentModifiedTime : null
     * id : 130
     * name : 共创食材北环
     * products : [{"id":11787,"title":"樟脑丸","thumbnail":"http://imgtest.epfresh.com/2017%2F11%2F14%2F1510641047504_%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20171114101205.png-PRODUCTTHUMBNAIL","commission":65,"maxPrice":10,"pack":"10斤/箱","minOrderQuantity":300,"chargeUnit":"斤","minPrice":5,"maxOrderQuantity":400}]
     * agentStatus : 2
     */

    private String productAgentModifiedTime;
    private String id;
    private String name;
    private Integer agentState;

    private List<ProductsBean> products;
    private String consigneeName;
    private String consigneePhone;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    private boolean enabled;

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public String getConsigneePhone() {
        return consigneePhone;
    }

    public void setConsigneePhone(String consigneePhone) {
        this.consigneePhone = consigneePhone;
    }

    public String getProductAgentModifiedTime() {
        return productAgentModifiedTime;
    }

    public void setProductAgentModifiedTime(String productAgentModifiedTime) {
        this.productAgentModifiedTime = productAgentModifiedTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAgentStatus() {
        return agentState;
    }

    public void setAgentState(Integer agentState) {
        this.agentState = agentState;
    }

    public List<ProductsBean> getProducts() {
        return products;
    }

    public void setProducts(List<ProductsBean> products) {
        this.products = products;
    }

    public static class ProductsBean {
        /**
         * id : 11787
         * title : 樟脑丸
         * thumbnail : http://imgtest.epfresh.com/2017%2F11%2F14%2F1510641047504_%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20171114101205.png-PRODUCTTHUMBNAIL
         * commission : 65
         * maxPrice : 10
         * pack : 10斤/箱
         * minOrderQuantity : 300
         * chargeUnit : 斤
         * minPrice : 5
         * maxOrderQuantity : 400
         */
        private boolean firstFlag = false;
        private boolean moreFlag = false;
        private String id;
        private String title;
        private String thumbnail;
        private String commission;
        private String maxPrice;
        private String pack;
        private String minOrderQuantity;
        private String chargeUnit;
        private String minPrice;
        private String maxOrderQuantity;
        private Integer state;//标识商品的状态
        private AgentMyRecord father = null;

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

        public AgentMyRecord getFather() {
            return father;
        }

        public void setFather(AgentMyRecord father) {
            this.father = father;
        }

        public boolean isFirstFlag() {
            return firstFlag;
        }

        public void setFirstFlag(boolean firstFlag) {
            this.firstFlag = firstFlag;
        }

        public boolean isMoreFlag() {
            return moreFlag;
        }

        public void setMoreFlag(boolean moreFlag) {
            this.moreFlag = moreFlag;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public String getCommission() {
            return commission;
        }

        public void setCommission(String commission) {
            this.commission = commission;
        }

        public String getMaxPrice() {
            return maxPrice;
        }

        public void setMaxPrice(String maxPrice) {
            this.maxPrice = maxPrice;
        }

        public String getPack() {
            return pack;
        }

        public void setPack(String pack) {
            this.pack = pack;
        }

        public String getMinOrderQuantity() {
            return minOrderQuantity;
        }

        public void setMinOrderQuantity(String minOrderQuantity) {
            this.minOrderQuantity = minOrderQuantity;
        }

        public String getChargeUnit() {
            return chargeUnit;
        }

        public void setChargeUnit(String chargeUnit) {
            this.chargeUnit = chargeUnit;
        }

        public String getMinPrice() {
            return minPrice;
        }

        public void setMinPrice(String minPrice) {
            this.minPrice = minPrice;
        }

        public String getMaxOrderQuantity() {
            return maxOrderQuantity;
        }

        public void setMaxOrderQuantity(String maxOrderQuantity) {
            this.maxOrderQuantity = maxOrderQuantity;
        }
    }
}
